<include file="public:header"/>
<link rel="stylesheet" type="text/css"
      href="http://o9kxq6gms.bkt.clouddn.com/js_source/artdialog/plugins/skins/idialog.css"/>
<script type="text/javascript" charset="UTF-8"
        src="http://o9kxq6gms.bkt.clouddn.com/js_source/artdialog/artDialog.source.js.js"></script>
<script type="text/javascript" charset="UTF-8"
        src="http://o9kxq6gms.bkt.clouddn.com/js_source/artdialog/plugins/iframeTools.source.js"></script>
<style>
    .global-pages {
        float: right;
    }
</style>
<div id="bd">
    <div class="layout grid-s45m0 w1000 user-center">
        <div class="col-main">
            <div class="main-wrap">
                <div class="box J_TBox">
                    <div class="global-title">团队列表
                        <a href='{:U("user/order_teamer",array("pid"=>$arr,"tid"=>$id))}' style="margin-left:20px;color:#00c481 ">消费明细</a>
                        <a href='{:U("user/price_teamer",array("pid"=>$arr,"tid"=>$id))}' style="color:#00c481">|资金明细</a>

                        <div class="order_search_box">
                            <form method="get" action="">
                                <input type="text" style="width:80px" name="username" class="order_text fl"
                                       placeholder="用户账号" value="{$search[username]}">
                                <input type="text" style="width:80px" name="tele" class="order_text fl"
                                       placeholder="请输入手机号" value="{$search[tele]}">
						<span class="select_shelter"> 
								<select name="tgroup" class="order_select fl" style="width:112px;">
                                    <option value="">用户类型(全部)</option>
                                    <volist name="tgroup" id="val">
                                        <if condition="$key egt 0">
                                            <option value="{$key}"
                                            <if condition="$tgroup_ eq $key">selected</if>
                                            >{$val}</option>
                                        </if>
                                    </volist>
                                </select>
								</span>
                                <input type="submit" class="order_sub" value="搜索"/>
                                <input type="submit" class="order_sub" value="导出" name="export" id="export-btn"/>

                                <input type="hidden" name="id" value="{$_GET['id']}">
                                <input type="hidden" name="profit" value="{$_GET['profit']}">

                                <input type="hidden" name="m" value="user">
                                <input type="hidden" name="a" value="add_teamer">
                            </form>
                        </div>
                    </div>
                </div>


                <div class="box J_TBox">
                    <div style="font-size:14px;">用户总余额:&nbsp;&nbsp;&nbsp;&nbsp;<font style="font-size: 17px">{$sum_price}</font>
                        <div style="font-size:14px;">查询用户为:&nbsp;&nbsp;&nbsp;&nbsp;<font style="font-size: 17px">{$id|get_username}</font>&nbsp;&nbsp;的明细</div>
                    </div>
                    <table cellpadding="0" cellspacing="0" class="server-content table-list"
                           style="margin-bottom:10px;">
                        <tr class="title">
                            <td align="center">ID</td>
                            <td align="center">团队级别</td>
                            <td align="center">会员帐号</td>
                            <td align="center">手机号码</td>
                            <td align="center">用户余额</td>
                            <td align="center" width="150">状态</td>
                        </tr>
                        <volist name="list" id="val">
                            <tr class="list">
                                <td align="center">
                                    {$val.id}
                                </td>
                                <td>
                                    {$tgroup[$val[tgroup]]}
                                </td>
                                <td>

                                    {$val.username}
                                </td>
                                <td>
                                    {$val.tele}
                                </td>
                                <td>
                                    {$val.price}
                                </td>
                                <td>
                                    <if condition="$val.status eq 0">停用
                                        <else/>
                                        启用
                                    </if>
                                </td>
                            </tr>
                        </volist>
                    </table>
                </div>


                <div class="box J_TBox">
                    <div class="global-pages">
						<span class="num">
							{$page}
						</span>
                    </div>
                </div>
            </div>
        </div>
        <include file="user:left"/>
    </div>
</div>
<!--主部结束-->
<script type="text/javascript" src="http://web.mcooz.com/js/jquery-1.11.1.min.js"></script>
<script>
    function agent(id) {

        var url = 'http://101.201.73.190/lib/weitang/index.php/?g=team&m=user&a=agent_act';
        $.getJSON(url, {'id': id}, function (json) {

                    if (json.status == 1) {
                        // var status= document.getElementById('status_'+id);
                        //status.innerHTML ="已审核";
                        //$("#status_"+id).html("_blank");
                        alert(json.message);
                        $('#status_' + id).html("已审核");
                        window.location.reload();


                        return false;
                    }

                    alert(json.message);


                }
        );
    }
</script>
<include file="public:footer"/>